<body>

    <div id="orderSummary">
         <div class="width960c">
            
            <div class="alignCenter" id="statusSummary">
                <h1 class="header36 marg10 textBold">Your GoGADGETS prepaid bundle details</h1>
                <?php /*?><h1 class="header36 marg10 textBold">Order Summary</h1>
				<p class="text16 marg10Top">Please review your order before clicking the Confirm button to proceed.</p><?php */ ?>
                <div class="width500">
                <p class="text20 marg0 textBold">Status: <span class="greenText"><?php echo $data->planStatus; ?></span></p>
                <p class="text16 marg10Top">The commitment period has been completed.</p>

                <hr>                
                <p><b> Amount of savings received to date:</b> P<?php echo $data->rebateAmt; ?></p>
                <p><b>Total savings for the chosen commitment period:</b> P<?php echo $data->totalRebate; ?> </p>
                <hr>

                </div>             
                
            </div>
            
            <?php /* ?>
            <div class="planCode" style="display:none">
                <div class="floatLeft box1">
                    <img class="marg20Top" src="images/goGadgetsMini.png" width="94" height="105" alt=""/>
                </div>
                
                <div class="floatLeft box2">
                    <h1 class="marg0 header24">Congratulations, <span id="nameReturned"></span>!</h1><h1 class="marg0 header24">You&#39;ve successfully registered to a GoGADGETS prepaid device bundle.</h1>
                    <h2 class="header30 marg10Top textBold underLine">Your reference number is <span id="planCodemismo"></span></span></h2>
                    <p class="text14 marg0">Your plan code has been sent to your Globe Prepaid mobile number and email. Please make sure that you have your plan code and registration summary ready when you go to your chosen Globe Store for handset pickup. You&#39;ll receive a notification within 48 hours indicating your handset pickup details.</p>
                </div>
                <span class="clear"></span>
            </div>
            <?php */ ?>
            
            <?php $gadgetName = $data->gadgetBrand . " " . $data->gadgetName; ?>
            
            <div class="phoneSum">
            	<div class="floatLeft imgHolder alignCenter">
                		<img src="<?php echo $data->imgURL; ?>" width="128" height="128" alt="<?php echo $gadgetName; ?>" />
                </div>            
                <div class="floatLeft information">
                        <p class="font24yv fontBold marg0">Reference Number: <?php echo $data->planCode; ?></p>
                
                        <p class="text20 marg0"><?php echo $gadgetName; ?></p>
                        
                        <ul>
                        <li><?php echo $data->promoName; ?>
                           <p> With <?php echo $data->promoTypeDesc; ?>.</p>
                           <p> Valid for <?php echo $data->validityDesc;?>.</p>
                            <p>Must register twice a month throughout the registration period.</p>
                        </li>
                        <li>Rebate and registration period
                            <p><?php echo $data->commitmentPeriod; ?> months</p>
                            <p>Total rebate of P<?php echo $data->totalRebate; ?> (P<?php echo $data->rebateAmt; ?> per registration to <?php echo $data->promoName; ?>)</p></li>
                        </ul>
                
                </div>
                
                <div class="floatRight priceList">
                        <div class="darkGrayBg">
                        <p>Upon pick up of your gadget, total cash out required is:</p>
                        </div>
                        <table>
                            <tr>
                                <td><?php echo $gadgetName; ?> </td>             
                                <td class="alignRight">P<?php echo $data->gadgetPlanPrice; ?></td>
                            </tr>
                            <tr>
                                <td><?php echo $data->promoName; ?></td>
                                <td class="alignRight"><?php echo $data->promoPrice; ?></td>
                           
                            </tr>
                             <tr class="fontBold text20">
                            <td>Total Cash Out  </td><td  class="alignRight"><?php if(isset($_COOKIE['totalcash'])) echo $_COOKIE['totalcash']; ?></td>
                            </tr>
                        </table>
                        <div class="darkGrayBg">
                        <p>After your rebates, your discounted gadget price is:</p>
                        </div>
                        <table>
                            <tr>
                                <td><?php echo $gadgetName; ?> </td>             
                                <td class="alignRight">P<?php echo $data->gadgetPrice; ?></td>
                            </tr>
                            <tr>
                                <td>Total Rebate</td>
                                <td class="alignRight">P<?php echo $data->totalRebate; ?></td>
                           
                            </tr>
                            <tr class="fontBold text20">
                            <td>Discounted Gadget Price</td><td class="alignRight"><?php if(isset($_COOKIE['discounted'])) echo $_COOKIE['discounted']; ?></td>
                            </tr>
                        </table>
                        
                        
                        
                </div>
                 <span class="clear"></span>
            
            </div>
            
            
            <div class="phoneSum2 text14">
                <div class="phoneSum2A floatLeft">
                    <div><p class="textBold inBlock  width215">Prepaid mobile number </p> <p class="inBlock">0<?php echo $data->msisdn; ?> </p></div>
                    <div><p class="textBold inBlock width215">Name</p>                 <p class="inBlock"><?php echo $data->fName . " " . $data->mName . " " . $data->lName; ?> </p></div>
                    <div><p class="textBold inBlock width215">Nickname</p>             <p class="inBlock"><?php echo $data->nName; ?></p></div>
                    <div><p class="textBold inBlock width215">Email address</p>            <p class="inBlock"><?php echo $data->email; ?></p></div>
                    <div><p class="textBold inBlock width215">Other contact number</p>   <p class="inBlock"><?php echo $data->otherCont; ?></p></div>
                    <div><p class="textBold inBlock width215">Date of birth</p>            <p class="inBlock"><?php echo $data->birthdate; ?></p></div>
                    <div><p class="textBold inBlock width215">Home address</p>         <p class="inBlock"><?php echo $data->streetNum . ", " . $data->area . ", " . $data->town . ", " . $data->province . " " . $data->postalCode; ?></p></div>
                    <div><p class="textBold inBlock width215">Globe Store branch</p>     <p class="inBlock"><?php echo $data->storeName; ?></p></div>
                </div>
                
                
                <span class="clear"></span>
                
                <div class="alignCenter" style="display:none">
                    <a href="#." class="buttonBlue text14 marg10Top">Print</a>
                </div>
                
                <p class="text14" id="footnote"><span class="textBold">Note:</span> The device selected is subject to availability. You&#39;ll receive a notification should there be any changes in your registration.</p>
            </div>
            
         </div>   
                
      
    </div>